﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FtpLibDotNet
{
    public class FtpFileInfo
    {
        internal FtpConnection Connection { get; private set; }
        public string FileName { get; private set; }
        public string Path { get; private set; }

        private FtpFileInfo(FtpConnection connection, string fileName, string path)
        {
            this.Connection = connection;
            this.FileName = fileName;
            this.Path = path;
        }

        public FtpDirectoryInfo GetDirectory()
        {
            return FtpDirectoryInfo.Create(this.Connection, this.Path);
        }

        public void Delete()
        {
        }

        internal static FtpFileInfo Create(FtpConnection connection, string fileName, string path)
        {
            return new FtpFileInfo(connection, fileName, path);
        }
    }
}
